import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueLazyload from 'vue-lazyload'
import './assets/css/iconfont.css'
import './plugins/vant'
import './assets/js/rem'
// 图片懒加载配置
const loadimage = require('@/assets/images/loading.gif')
const errorimage = require('@/assets/images/error.jpg')
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: errorimage,
  loading: loadimage,
  attempt: 1
})
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
